package main

import (
	"gitee.com/huerbiao/robot/config"
	"gitee.com/huerbiao/robot/pkg/logger"
	"gitee.com/huerbiao/robot/pkg/mysql"
	"gitee.com/huerbiao/robot/routers"
)

const (
	addr = ":9808"
)

func main() {
	//加载配置文件
	config.LoadConfig()
	//初始化日志模块
	logger.Init()
	mysql.InitConnect()

	//r := gin.Default()
	r := routers.SetupRouter()
	r.Run(addr) // 监听并在 0.0.0.0:9808 上启动服务
}
